var assert = require('assert');
require("@babel/register");
// var add = require('../add.js');
import { add } from '../add.js';

// 使用 describe('xxx', function() {}) 用来分组
describe("add function test", function () {
  // it('xxx', function() {}) 用来执行
  it('should return 3 when the value has been add', function() {
    assert.equal(add(1, 2), 3);
  });
  
  it('should return -3 when the value has been add', function() {
    assert.equal(add(-5, 2), -3);
  });
})

